import request from '@/utils/request'

/**
 * 分页获取所有活动
 * */
export function getActivityPageList(data){
  return request({
    url: 'activity/getActivityPageList',
    method: 'post',
    data: data
  })
}


/**
 * 增加活动
 * */

export function saveActivity(data){
  return request({
    url: 'activity/saveActivity',
    method: 'post',
    data: data
  })
}
/**
 * 活动详情
 * */
export function getActivityDetails(data){
  return request({
    url: 'activity/getActivityDetails',
    method: 'post',
    data: data
  })
}
/**
 * 编辑活动
 * */
export function updateActivity(data){
  return request({
    url: 'activity/updateActivity',
    method: 'post',
    data: data
  })
}
/**
 * 库存赠品列表
 * */

export function getInventoryGoodsList(data){
  return request({
    url: 'inventory_goods/getInventoryGoodsList',
    method: 'post',
    data: data
  })
}
